﻿namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TbKhoiThi")]
    public partial class TbKhoiThi
    {
        public TbKhoiThi()
        {
            TbThiSinhs = new HashSet<TbThiSinh>();
        }

        [Key]
        [Display(Name = "Mã khối thi")]
        public int MaKhoiThi { get; set; }

        [Required(ErrorMessage = "Bạn chưa nhập khối thi!")]
        [Display(Name = "Khối thi")]
        [StringLength(15)]
        public string TenKhoiThi { get; set; }

        public ICollection<TbThiSinh> TbThiSinhs { get; set; }
    }
}
